package top.kangyaocoding.ecommerce.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 描述: 通用响应类，用于封装接口返回结果
 *
 * @author K·Herbert
 * @since 2025-02-15 下午4:00
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Response<T> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private String code;
    private String info;
    private T data;

}